

package jetbrains.buildServer.server.rest.model.versionedSettings;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import jetbrains.buildServer.server.rest.swagger.annotations.ModelDescription;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

@XmlRootElement(name = VersionedSettingsContextParameter.TYPE)
@ModelDescription(
  value = "Represents a Versioned Settings Context Parameter.",
  externalArticleLink = "https://www.jetbrains.com/help/teamcity/storing-project-settings-in-version-control.html",
  externalArticleName = "Storing Project Settings in Version Control"
)
public class VersionedSettingsContextParameter {

  static final String TYPE = "versionedSettingsContextParameter";

  private String myName;

  private String myValue;


  @SuppressWarnings("unused")
  public VersionedSettingsContextParameter() {
  }

  public VersionedSettingsContextParameter(@NotNull String name, @Nullable String value) {
    myName = name;
    myValue = value;
  }

  @XmlAttribute(name = "name")
  public String getName() {
    return myName;
  }

  @XmlAttribute(name = "value")
  @Nullable  
  public String getValue() {
    return myValue;
  }

  public void setName(String name) {
    myName = name;
  }

  public void setValue(String value) {
    myValue = value;
  }

}